from django.conf.urls import url

from apps.users.views import RegisterView, UsernameCountView, LoginView, UserCenterView, LogoutView, AddressView, \
    ChangePasswordView

urlpatterns = [
    url(r'^register/$', RegisterView.as_view(), name="register"),
    url(r'^usernames/(?P<username>[a-zA-Z0-9_]{5,20})/count/$', UsernameCountView.as_view(), name='count'),
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^logout/$', LogoutView.as_view(), name='logout'),
    url(r'^usercenter/$', UserCenterView.as_view(), name='user_center'),
    url(r'^address/$', AddressView.as_view(), name='address'),
    url(r'^password/$', ChangePasswordView.as_view(), name='password'),  # 修改密码

]
